﻿using Kinlo.Entitys;
using MaterialDesignThemes.Wpf;
using Microsoft.Win32;
using NewLife.Data;
using SixLabors.ImageSharp;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using UIWindows.Commands;
using UIWindows.GlobalStatics;
using UIWindows.Models.ParameterModels;
using UIWindows.Tools.Helper;
using UIWindows.ViewModels.MesParameterItems;
using UIWindows.Views;
using UIWindows.Views.MesParameterItems;
using XingLucifer.IBase.Enums;

namespace UIWindows.ViewModels
{
    public class MesParameterViewModel : UIWindows.Domains.ViewModelBase
    {
        public MesResultParameter MesResultParameterView { get; set; }
        public MesRunParameter MesRunParameterView { get; set; }
        public MesParameterViewModel(GlobalStatics.DeviceInteractiveaddressStatic parameter, UserConfigStatic userConfig, SystemConfigStatic systemConfigStatic)
        {
            MesResultParameterView = new MesResultParameter
            {
                DataContext= new MesResultParameterViewModel(parameter, userConfig, systemConfigStatic)
            };
            MesRunParameterView = new MesRunParameter
            {
                DataContext = new MesRunParameterViewModel(parameter, userConfig)
            };
        }   
    }

  
}
